package com.chanzany.iterator.case1;

import java.util.Arrays;

public class Client {
    public static void main(String[] args) {
        ComputerCollege computerCollege = new ComputerCollege();
        computerCollege.addDepartment(new Department("网络安全","有前景，国家重视"));
        computerCollege.addDepartment(new Department("人工智能","有前景，用面广"));

        CommunicationCollege communicationCollege = new CommunicationCollege();
        communicationCollege.addDepartment(new Department("无线网络","有前途，未来的方向"));
        communicationCollege.addDepartment(new Department("边缘计算","5/6G架构落地主流技术"));

        OutPutImpl outPut = new OutPutImpl(Arrays.asList(computerCollege, communicationCollege));
        outPut.printCollege();
    }
}
